package com.cnbbx.cnbbx_web.domain;

import com.cnbbx.mybatis.annotations.Column;
import com.cnbbx.mybatis.annotations.Table;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Table(table = "user_info")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户实体类")
public class UserInfo {
    @Column(desc = "用户ID", column = "u_id", length = "20")
    @ApiModelProperty(notes = "用户ID")
    @JsonProperty(value = "uId")
    private Long uId;

    @Column(desc = "用户昵称", column = "u_name", length = "50")
    @ApiModelProperty(notes = "用户昵称")
    @JsonProperty(value = "uName")
    private String uName;

    @Column(desc = "用户手机", column = "u_phone", length = "50")
    @ApiModelProperty(notes = "用户手机")
    @JsonProperty(value = "uPhone")
    private String uPhone;

    @Column(desc = "用户地址", column = "u_address", length = "50")
    @ApiModelProperty(notes = "用户地址")
    @JsonProperty(value = "uAddress")
    private String uAddress;
}